﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MyHealthByDesignWebsite.Models.HealthGram>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Health Gram
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>Health Gram</h2>

<table style="border-style: hidden; " align="center" width="500">
    <tr>
        <td style="border-style: hidden; width: 250px;">Name: <%= Model.UserName %></td>
        <td style="border-style: hidden">Height: <%= Model.Height %> inches</td></tr>
    <tr style="border-style: hidden">
        <td style="border-style: hidden; width: 250px;">Sex: 
            <% if (Model.Sex == 'F')
               {%>
            Female
            <% }
               else
               {%>
            Male 
            <%} %></td>
        <td style="border-style: hidden">Weight: <%= Model.Weight %></td></tr>
    <tr>
        <td style="border-style: hidden; width: 250px;">Age: <%= Model.Age %></td></tr>
</table><br /><br />

<table width="500" align="center">
    <tr>
        <th>Measures</th>
        <th></th>
        <th>Your Values</th>
        <th>Healthy Values</th></tr>
    <tr>
        <td>Resting Blood Pressure</td>
        <td></td>
        <td></td>
        <td></td></tr>
    <tr>
        <td align="right">Systolic</td>
        <td><%= Model.Systolic %></td>
        <td style="background-color: <%= Model.SystolicColor %>"><%= Model.SystolicValue %></td>
        <td>< 120 mmHG</td></tr>
    <tr>
        <td align="right">Diastolic</td>
        <td><%= Model.Diastolic %></td>
        <td style="background-color: <%= Model.DiastolicColor %>"><%= Model.DiastolicValue %></td>
        <td>< 80 mmHG</td></tr>
    <tr>
        <td>Waist Measurement</td>
        <td><%= Model.Waist%></td>
        <td style="background-color: <%= Model.WaistColor %>"><%= Model.WaistValue %></td>
        <td>27.5 in</td></tr>
    <tr>
        <td>BMI (Body Mass Index)</td>
        <td><%= Model.BMI %></td>
        <td style="background-color: <%= Model.BMIColor %>"><%= Model.BMIValue %></td>
        <td>18.5 - 24.9</td></tr>
    <tr>
        <td>Total Cholesterol</td>
        <td><%= Model.TotalCholesterol %></td>
        <td style="background-color: <%= Model.TotalCholesterolColor %>"><%= Model.TotalCholesterolValue %></td>
        <td>< 200</td></tr>
    <tr>
        <td>Blood Glucose</td>
        <td><%= Model.BloodGlucose %></td>
        <td style="background-color: <%= Model.BloodGlucoseColor %>"><%= Model.BloodGlucoseValue %></td>
        <td>< 100 mm * dL-1</td></tr>
    <tr>
        <td>Physical Activity Level</td>
        <td></td>
        <td></td>
        <td>150 minutes/week</td></tr>
    <tr>
        <td>Resting Heart Rate</td>
        <td><%= Model.HeartRate %></td>
        <td style="background-color: <%= Model.HeartRateColor %>"><%= Model.HeartRateValue %></td>
        <td>50-90 bpm</td></tr>
</table><br /><br /><br />

<table style="border-style: hidden; height: 127px;" align="center" width="500">
    <tr>
        <td style="border-style: hidden; width: 143px;" height="24" align="center">Desirable/Normal</td>
        <td style="border-style: hidden" align="center">Room For Improvement</td>
        <td style="border-style: hidden" align="center">Health Risk</td></tr>
    <tr>
        <td style="border-style: hidden; width: 143px;" height="150" align="center">
            <table bgcolor="#99FF66" width="130">
                <tr><td style="height: 136px"></td></tr></table></td>
        <td style="border-style: hidden; width: 143px;" height="150" align="center">
            <table bgcolor="#FFFF66" width="130">
                <tr><td style="height: 136px"></td></tr></table></td>
        <td style="border-style: hidden; width: 143px;" height="150" align="center">
            <table bgcolor="#FF5050" width="130">
                <tr><td style="height: 136px"></td></tr></table></td>
    </tr>
</table><br /><br />
</asp:Content>
